package ${package.ServiceImpl};

import com.ybwh.springboot2.common.mybatis.plus.update.force.MybatisPlusForceUpdater;
import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Service
<#if kotlin>
open class ${table.serviceImplName}  {

}
<#else>
public class ${table.serviceImplName}  implements ${table.serviceName} {
    @Resource
    private ${table.mapperName}  ${table.mapperName?uncap_first};
    @Autowired
    private MybatisPlusForceUpdater mybatisPlusForceUpdater;


    @Override
    public int forceUpdateById(${entity} entity) {
        return mybatisPlusForceUpdater.forceUpdateById(entity);
    }
}
</#if>
